package com.cqc.listviewchoicedemo;


import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;

/**
 * Created by ${cqc} on 2017/3/14.
 */

public class MyMultiChoiceModeListener implements ListView.MultiChoiceModeListener {

    @Override
    public void onItemCheckedStateChanged(ActionMode actionMode, int position, long id, boolean checked) {
        //item 被点击后的操作，可以不做处理
    }

    @Override
    public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
        //返回true
        return true;
    }

    @Override
    public boolean onPrepareActionMode(ActionMode actionMode, Menu menu) {
        //返回true
        return true;
    }

    @Override
    public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) {
        //返回true
        return true;
    }

    @Override
    public void onDestroyActionMode(ActionMode actionMode) {
        //不做处理
    }
}
